package com.example.schooljava.pojo.dto;

import com.example.schooljava.util.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 接收班级关系的新建与编辑的参数
 *
 * @author: LDH
 * @date: 2022年08月26日 19:28
 */
@ApiModel(value = "班级关系的新建与编辑实体", description = "")
@Data
public class AddClassCurrDTO {

    @ApiModelProperty("ClassCurr表的id")
    @NotBlank(message = "课程关系id不能为空", groups = ValidationGroups.Update.class)
    private String id;

    @ApiModelProperty("班级表的年级属性")
    private int grade;

    @ApiModelProperty("班级表的id")
    @NotBlank(message = "班级id不能为空", groups = {ValidationGroups.Update.class, ValidationGroups.Add.class})
    private String classname;

    @ApiModelProperty("课程表id")
    @NotBlank(message = "课程不能为空", groups = {ValidationGroups.Update.class, ValidationGroups.Add.class})
    private String curriculum;

    @ApiModelProperty("教师id（tno）")
    @NotBlank(message = "教师不能为空", groups = ValidationGroups.Add.class)
    private String teacher;

}